package cn.bob.feign;

import cn.bob.domain.User;
import org.springframework.stereotype.Component;

/**
 * @author bob
 * @data 2022/11/9-16:02
 */
@Component //交给spring管理
public class PayClientFallback implements UserServer{

    @Override
    public User getUser(Long id) {
        return new User(-1L,"熔断触发",23,"已熔断");
    }
}
